package cn.stylefeng.guns.modular.quan.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dong
 * @since 2023-10-31
 */
@TableName("t_coupon_receive")
public class CouponReceive implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 优惠券id
     */
    @TableField("coupon_id")
    private Long couponId;

    /**
     * 二维码
     */
    @TableField("qr_code")
    private String qrCode;

    /**
     * 二维码标识
     */
    @TableField("qr_tag")
    private String qrTag;

    /**
     * 券码
     */
    @TableField("coupon_code")
    private String couponCode;

    /**
     * 0 未核销     3 已核销    1 未开始   2 已失效
     */
    @TableField("status")
    private Integer status;

    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 领取时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 核销时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 用户电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 用户地址
     */
    @TableField("addr")
    private String addr;

    /**
     * 用户姓名
     */
    @TableField("name")
    private String name;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getQrTag() {
        return qrTag;
    }

    public void setQrTag(String qrTag) {
        this.qrTag = qrTag;
    }

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "CouponReceive{" +
        "id=" + id +
        ", userId=" + userId +
        ", couponId=" + couponId +
        ", qrCode=" + qrCode +
        ", qrTag=" + qrTag +
        ", couponCode=" + couponCode +
        ", status=" + status +
        ", isDelete=" + isDelete +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", phone=" + phone +
        ", addr=" + addr +
        ", name=" + name +
        "}";
    }
}
